<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="{:U('weibo/Plugins/init')}"></script>

<php>if($mid==-1){</php>
<!-- 快速注册 -->
<div class="quick_reg mt10">
<div class="reg_box">
	<h2 class="cBlue"><span class="right">已有账号？<a href="###">马上登录</a></span><strong>赶快注册同学帮帮网轻博客,和我一起随时随地分享生活的新鲜资讯吧!</strong></h2>
    <ul style=" width:380px;" class="form_list">
    	<li class="form_li"><div class="left alR" style="width:85px;">电子邮箱：</div><div class="left" style="width:260px;"><input type="text" class="text" style="width:250px;" name="email" require="true"  /></div></li>
        <li class="form_li"><div class="left alR" style="width:85px;">&nbsp;</div>
        <div class="left" ><a href="###" class="btn_reg"><strong>快速创建我的博客</strong></a></div></li>
    </ul>
    <div class="clew_bg left" style="width:605px;">
    <div class="clew_bg_arrow_l"></div>
    	<div class="clew_bg_top"><div></div></div>
        <div class="clew_bg_con" style="height:70px;">为什么要注册、登录？<br />
同学帮帮轻博客为每一位用户提供不同的服务，登录才能记住你的喜好。</div>
        <div class="clew_bg_btm"><div></div></div>
    </div>
    <div class="c"></div>
    </div>
</div>
<div class="quick_reg mt10">
<div class="reg_box">
	<h2 class="cBlue"><span class="right cG">已有账号？<a href="###">马上登录</a></span><strong>赶快注册同学帮帮轻博客,和我一起随时随地分享生活的新鲜资讯吧!</strong></h2>
    <ul class="form_list">
    	<li class="form_li"><div class="left alR" style="width:85px;">电子邮箱：</div><div class="left" style="width:260px;"><input type="text" class="text" style="width:250px;" name="email" require="true"  /></div><div class="left"><span class="ico_cue_ok">&nbsp;</span></div></li>
        <li class="form_li"><div class="left alR" style="width:85px;">电子邮箱：</div><div class="left" style="width:260px;"><input type="password" class="text" style="width:250px;" name="password" id="password" require="true" value="" datatype="limit"  min="6" max="16" /></div><div class="left"><span  class="ico_cue_no"></span>邮箱格式不对</div></li>
        <li class="form_li"><div class="left alR" style="width:85px;">电子邮箱：</div><div class="left" style="width:260px;"><input type="password" class="text" style="width:250px;" name="repassword" require="true" value="" datatype="repeat|limit"  min="6" max="16" to="password" />
                    </div><div class="left"><span></span>邮箱格式不对</div></li>
        <li class="form_li"><div class="left alR" style="width:85px;">验证码：</div><div class="left" style="width:100px;"><input type="text" class="text" style="width:90px;" name="email" require="true"  /></div><div class="left"><span></span>12341</div></li>
        <li><div class="left alR" style="width:85px;">&nbsp;</div>
        <div class="left" ><a href="###" class="btn_reg"><strong>快速创建我的博客</strong></a></div></li>
    </ul>
    <div class="c"></div>
</div>
</div>
<php>}</php>

<div class="content no_bg2"><!-- 内容 begin  --> 
 
 <div class="blog_right">
    
    <div class="blog_face"><space uid="uid">{uavatar=o}</space>
    
    </div>
    
   <include file="../Space/space_right" />
  </div>
 <php>if($bloglist){</php>
  <volist name="bloglist" id="vo">
  <div class="blog_left" id="list_{$vo['weibo_id']}">
  
  <div class="blog_c2"> 
  <div class="bl_Box">
  
  <h3 class="f18px fB lh180"><a href="{:U('home/Space/blog',array('uid'=>$uid,'id'=>$vo['weibo_id']))}">{$vo['title']}</a></h3>
  <p class="lh180">{$vo['content']} </p>
  
   <div class="blog_tag "> <span class="right">
   <php>if($vo['uid']==$mid){</php>
   <a href="{:U('home/Blog/edit',array('id'=>$vo['weibo_id']))}">编辑</a> <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这篇文章?')" callback="Deleted({$vo['weibo_id']})">删除</a>
   <php>}else{</php>
   <a href="{:U('home/blog/reship',array('id'=>$vo['weibo_id']))}">转载</a><php>}</php>
   <a href="#">热度</a><a href="#">回应</a> 
   </span>
   <a href="{:U('home/Space/blog',array('uid'=>$uid,'id'=>$vo['weibo_id']))}">查看原文</a>    
   </div>
  <!-- 标签 bigen-->
   <php>if($vo['tag']){</php>
   <div class="blog_tag "><volist name="vo['tag']" id="tag">
  <a href="{:U('home/Space/index',array('uid'=>$uid,'k'=>urlencode($tag)))}">#{$tag}</a>
  
       </volist>
     
   </div>
   <php>}</php>
  <!--标签 end-->
    </div></div> </div> 
  </volist>
    <div class="page">{$page}</div>
 <php>}else{</php>
 <div class="blog_left">
 <div class="blog_c2">
 <div class="bl_Box">
 无数据
 </div>

 </div>
 </div>
 <php>}</php>

</div>

<!-- 内容 end --> 
<script>

function Deleted(wb_id){
    $.post(U('home/Blog/doDel'),{wb_id:wb_id},function(rel){
	    if(rel==1){
		$('#list_'+wb_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else if(rel==-1){
		ui.error('文章不存在或者已经删除');		
		}else{
		ui.error('删除失败');			
		}
	
	});	
}

</script>
<include file="__THEME__/footer" /> 